/**
 * 项目分部分项API
 */
import request from '@/utils/request'
import {
    projectApiUrl,qualityApiUrl
} from './../../config.js'

/**
 * 获取当前登录人所在分公司参与的项目信息
 * @param data
 */
export function getQueryProjectBind(data) {
    return request({
        url: `${qualityApiUrl}/quality/project/query-project-bind`,
        method: 'post',
        data
    })
}
/**
 * 工程类别-项目分部分项树节点
 * @param data
 */
export function queryTreeType(data) {
    return request({
        url: `${qualityApiUrl}/quality/constructiontype/query-tree-type/${data.id}/${data.isDeleted}`,
        method: 'post',
        data
    })
}
/**
 分包商-查询工程类别列表不分页
 * @param data
 */
 export function queryLists(data) {
    return request({
        url: `${qualityApiUrl}/quality/constructiontype/project-type`,
        method: 'post',
        data
    })
}

/**
 获取工程类别
 * @param data
 */
 export function qualityTypeLabel(params) {
    return request({
        url: `${qualityApiUrl}/quality/types-label`,
        method: 'get',
        params
    })
}
/**
 获取施工内容
 * @param data
 */
 export function getConstruction(data) {
    return request({
        url:`${qualityApiUrl}/quality/constructiontype/sub-item/tree/${data.id}/${data.projectId}/${data.isJz}`,
        method: 'post',
        data
    })
}

/**
 查询管理行为的树节点
 * @param data
 */
 export function getManagerTreeQuery(data) {
    return request({
        url: `${qualityApiUrl}/universal/project-type/managerTreeQuery/3`,
        method: 'get',
    })
}

